from django.conf.urls import url

from xiu_event import views


# router = DefaultRouter()
# # 向路由器中注册视图集
# router.register(r'gatherings', views.EventView,basename='')
# #追加路由
# urlpatterns += router.urls
urlpatterns = [
    url(r"^gatherings/$", views.EventsView.as_view()),
    url(r"^gatherings/(?P<pk>[^/.]+)/$", views.EventView.as_view()),
    url(r"^gatherings/(?P<pk>[^/.]+)/join/$", views.EventJoinView.as_view()),
]
